package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.ProductKeyProcessDeviateConfDetailMapper;
import com.tinycloud.miracll.product.domain.ProductKeyProcessDeviateConfDetail;
import com.tinycloud.miracll.product.service.IProductKeyProcessDeviateConfDetailService;

/**
 * ERP重控点位偏差配置明细Service业务层处理
 * 
 * @author tiny
 * @date 2022-01-15
 */
@Service
@Slave1
public class ProductKeyProcessDeviateConfDetailServiceImpl implements IProductKeyProcessDeviateConfDetailService 
{
    @Autowired
    private ProductKeyProcessDeviateConfDetailMapper productKeyProcessDeviateConfDetailMapper;

    /**
     * 查询ERP重控点位偏差配置明细
     * 
     * @param issuePoint ERP重控点位偏差配置明细主键
     * @return ERP重控点位偏差配置明细
     */
    @Override
    public ProductKeyProcessDeviateConfDetail selectProductKeyProcessDeviateConfDetailByIssuePoint(String issuePoint)
    {
        return productKeyProcessDeviateConfDetailMapper.selectProductKeyProcessDeviateConfDetailByIssuePoint(issuePoint);
    }

    /**
     * 查询ERP重控点位偏差配置明细列表
     * 
     * @param productKeyProcessDeviateConfDetail ERP重控点位偏差配置明细
     * @return ERP重控点位偏差配置明细
     */
    @Override
    public List<ProductKeyProcessDeviateConfDetail> selectProductKeyProcessDeviateConfDetailList(ProductKeyProcessDeviateConfDetail productKeyProcessDeviateConfDetail)
    {
        return productKeyProcessDeviateConfDetailMapper.selectProductKeyProcessDeviateConfDetailList(productKeyProcessDeviateConfDetail);
    }

    /**
     * 新增ERP重控点位偏差配置明细
     * 
     * @param productKeyProcessDeviateConfDetail ERP重控点位偏差配置明细
     * @return 结果
     */
    @Override
    public int insertProductKeyProcessDeviateConfDetail(ProductKeyProcessDeviateConfDetail productKeyProcessDeviateConfDetail)
    {
        return productKeyProcessDeviateConfDetailMapper.insertProductKeyProcessDeviateConfDetail(productKeyProcessDeviateConfDetail);
    }

    /**
     * 修改ERP重控点位偏差配置明细
     * 
     * @param productKeyProcessDeviateConfDetail ERP重控点位偏差配置明细
     * @return 结果
     */
    @Override
    public int updateProductKeyProcessDeviateConfDetail(ProductKeyProcessDeviateConfDetail productKeyProcessDeviateConfDetail)
    {
        return productKeyProcessDeviateConfDetailMapper.updateProductKeyProcessDeviateConfDetail(productKeyProcessDeviateConfDetail);
    }

    /**
     * 批量删除ERP重控点位偏差配置明细
     * 
     * @param issuePoints 需要删除的ERP重控点位偏差配置明细主键
     * @return 结果
     */
    @Override
    public int deleteProductKeyProcessDeviateConfDetailByIssuePoints(String[] issuePoints)
    {
        return productKeyProcessDeviateConfDetailMapper.deleteProductKeyProcessDeviateConfDetailByIssuePoints(issuePoints);
    }

    /**
     * 删除ERP重控点位偏差配置明细信息
     * 
     * @param issuePoint ERP重控点位偏差配置明细主键
     * @return 结果
     */
    @Override
    public int deleteProductKeyProcessDeviateConfDetailByIssuePoint(String issuePoint)
    {
        return productKeyProcessDeviateConfDetailMapper.deleteProductKeyProcessDeviateConfDetailByIssuePoint(issuePoint);
    }
}
